<?php
/**
 * The template for displaying the footer
 *
 * Contains footer content and the closing of the #main and #page div elements.
 *
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since Twenty Thirteen 1.0
 */
?>
	</div><!-- #main .wrapper -->
	<footer id="colophon" role="contentinfo">
		<div class="site-info">
			<?php do_action( 'twentytwelve_credits' ); ?>
			<a href="<?php echo esc_url( __( 'http://bitnami.com/stack/wordpress/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'BitNami WordPress Module' ); ?></a>
		</div><!-- .site-info -->
	</footer><!-- #colophon -->
</div><!-- #page -->

<script>
//For test data: Used @ Page -> btn Add Pinterest
  function showtest() {
    var elem = document.getElementById("forsync_pinterest_username");
    alert ( elem.value );
  }

	function sync_twitter_account() {
		var elem = document.getElementById("forsync_twitter_username");
		var points = document.getElementById("forsync_twitter_points");
		jQuery.get( "sample-page/?args=sync_twitter&uname=" + elem.value + "&points=" + points.options[points.selectedIndex].text, function( data ) 
		{
			alert ( data ) ;
			//code for on success -> message
		});
	}
	function sync_tumbler_account()
	{
		var elem = document.getElementById("forsync_tumblr_username");
		var points = document.getElementById("forsync_tumblr_points");
		jQuery.get( "sample-page/?args=sync_tumbler&uname=" + elem.value + "&points=" + points.options[points.selectedIndex].text, function( data ) 
		{
			//code for on success -> message
			alert ( data );
		});
	}
	function sync_website_blogger()
	{
		var elem = document.getElementById("forsync_website_blogger");
		var points = document.getElementById("forsync_blogger_points");
		jQuery.get( "sample-page/?args=sync_website&type=Blogger&url=" + elem.value + "&points=" + points.options[points.selectedIndex].text, function( data ) 
		{
			//code for on success -> message
			alert ( data );
		});
	}
	function sync_website_wordpress()
	{
		var elem = document.getElementById("forsync_website_wordpress");
		var points = document.getElementById("forsync_wordpress_points");
		jQuery.get( "sample-page/?args=sync_website&type=Wordpress&url=" + elem.value + "&points=" + points.options[points.selectedIndex].text, function( data ) 
		{
			//code for on success -> message
			alert ( data );
		});
	}
	function sync_website_business()
	{
		var elem = document.getElementById("forsync_website_business");
		var points = document.getElementById("forsync_business_points");
		jQuery.get( "sample-page/?args=sync_website&type=Website&url=" + elem.value + "&points=" + points.options[points.selectedIndex].text, function( data ) 
		{
			//code for on success -> message
			alert ( data );
		});
	}

//SR 13/12/2013
//For test data: Pinterest
//Database samples
  function sync_pinterest_account()
  {
    wpdbtest_getid();
  }

//wpdb testing area
  function wpdbtest_getid()
  {
    jQuery.get( "sample-page/?args=wpdbtest_getid", function( data ) 
    {
      jQuery( ".button_01" ).html( data );
          alert(data);
    });
  }

</script>

<script type="text/javascript">

function addFbURL() {
//jQuery.get( "sample-page/?args=1" );

jQuery.get( document.location.href + "sample-page/?args=2&url="+jQuery("#fb_url").val(), function( data ) {
	//jQuery( "#samplecode" ).html('');
	//jQuery( "#samplecode" ).html( data );
	//alert(document.location.href);
	jQuery( "#samplecode" ).attr("src", data );
	});

}
</script>


<!-- twiiter follow button-->
<script>
!function(d,s,id)
 {
   var js,fjs=d.getElementsByTagName(s)[0];
   if(!d.getElementById(id)){
     js=d.createElement(s);js.id=id;
     js.src="//platform.twitter.com/widgets.js";
     fjs.parentNode.insertBefore(js,fjs);
   }
 }(document,"script","twitter-wjs");
</script>

		</div><!-- #main -->
		<footer id="colophon" class="site-footer" role="contentinfo">
			<?php get_sidebar( 'main' ); ?>

			<div class="site-info">
				<?php do_action( 'twentythirteen_credits' ); ?>
				<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentythirteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>
			</div><!-- .site-info -->
		</footer><!-- #colophon -->
	</div><!-- #page -->

	<?php wp_footer(); ?>
</body>
</html>